$primary-color: #2b80ff;
$primary-color-back: #dbeaff;
$primary-linear-one: #4a77ee;
$primary-linear-two: #74acff;

.header {
  position: relative;

  .con {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    .logo {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;

      .img {
        width: 100px;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        margin-right: 10px;

        img {
          max-width: 100%;
        }
      }

      .text {
        .txt1 {
          font-size: 18px;
        }

        .txt2 {
          font-size: 12px;
        }
      }
    }

    .nav {
      display: flex;
      height: 60px;
      z-index: 999;
      position: relative;

      .li {
        padding: 0 15px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: relative;
        background-color: #fff;

        &:last-child::before {
          position: absolute;
          width: 60px;
          height: 60px;
          left: 100%;
          background: #ffffff;
          top: 0;
          content: "";
          display: block;
          z-index: 999;
        }

        &:hover {
          cursor: pointer;

          &::after {
            display: block;
            content: "";
            width: 25px;
            height: 3px;
            background-color: #4b79f3;
            position: absolute;
            bottom: 0;
            left: 15px;
            transform: translate(0, 0);
          }

          .v1 {
            font-weight: bold;

            img {
              transform: rotate(0deg);
            }
          }

          .sub {
            transform: translate(0, 100%);
            box-shadow: #eeeeee 0 0 1px 1px;
          }
        }

        .v1 {
          display: flex;
          align-items: center;

          span {
            margin-right: 2px;
          }

          img {
            width: 15px;
            height: 15px;
            transform: rotate(180deg);
            transition: all .3s;
          }
        }

        .box1 {
          width: 300px;
          background-color: #fff;
          padding: 10px 0;
          display: flex;
          flex-direction: row;
          justify-content: flex-start;
          align-items: center;
          flex-wrap: wrap;

          a {
            justify-content: center;
            align-items: center;
            line-height: 45px;
            display: flex;
            width: 100px;
            animation: all .3s;

            &:hover {
              color: $primary-color;
            }

            img {
              width: 25px;
              margin-right: 5px;
            }

            font-size: 12px;
          }

          span {
            max-width: 50px;
          }

        }

        .box2 {
          width: 300px;
          background: #ffffff;
          padding: 0 10px;

          .c2 {
            display: flex;
            align-items: center;

            .left {
              width: 100px;
              display: flex;
              align-items: center;
              height: 100%;

              justify-content: center;

              img {
                width: 20px;
                height: 20px;
                margin-right: 5px;
              }
            }

            .right {
              width: 200px;
              display: flex;
              flex-wrap: wrap;
              padding: 10px;
              background-color: #ffffff;

              a {
                width: 33.33%;
                line-height: 30px;
                font-size: 12px;

                &:hover {
                  color: $primary-color;
                }
              }
            }
          }

          .c1 {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
            border-bottom: solid 1px #eeeeee;

            .left {
              display: flex;
              align-items: center;
              justify-content: center;

              img {
                width: 20px;
                height: 20px;
                margin-right: 5px;
              }

            }

            .right {
              width: 15px;

              img {
                transform: rotate(180deg);
              }
            }

            line-height: 35px;
          }
        }

        .box3 {
          width: 100px;
          display: flex;
          flex-direction: column;
          background-color: #fff;
          &.box3-w{
            width: 140px;
          }
          a {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 10px;

            &:hover {
              color: $primary-color;
            }

            img {
              width: 20px;
              margin-right: 5px;
            }

            span {
              font-size: 10px;
            }
          }
        }

        .box4 {
          width: 300px;
          display: flex;
          flex-direction: row;
          flex-wrap: wrap;
          align-items: center;
          background-color: #ffffff;

          a {
            width: 50%;
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
            padding: 10px;

            &:hover {
              color: $primary-color;
            }

            img {
              width: 25px;
              margin-right: 5px;
            }

            .text {
              display: flex;
              flex-direction: column;

              .tit {
                font-size: 14px;
              }

              .txt {
                font-size: 12px;
              }
            }
          }
        }

        .sub {
          position: absolute;
          bottom: 0;
          left: 15px;
          border-bottom-left-radius: 5px;
          border-bottom-right-radius: 5px;
          transition: all .5s ease;
          transform: translate(0, 0);
          z-index: -1;
        }

        .look {
          transform: translate(0, 100%);
        }

      }

      .lii {
        &::after {
          content: "";
          width: 25px;
          height: 3px;
          background-color: #4b79f3;
          position: absolute;
          bottom: 0;
          left: 15px;
          transform: translate(0, 0);
        }
      }
    }
  }
}



.header-iphone {
  display: none;
  justify-content: center;
  align-items: center;

  .con {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    position: relative;
    z-index: 999;

    .menuBtn {
      width: 40px;
      height: 40px;
      padding-left: 10px;
      cursor: pointer;
      transition: .3s;
      -ms-transition: .3s;
      -moz-transition: .3s;
      -webkit-transition: .3s;
      -o-transition: .3s;
      display: flex;
      flex-direction: column;
      justify-content: center;

      span {
        display: block;
        height: 4px;
        background-color: #333;
        margin: 2px 4px;
        transition: .3s;
        -ms-transition: .3s;
        -moz-transition: .3s;
        -webkit-transition: .3s;
        -o-transition: .3s;
        position: relative;
      }

      span::before {
        content: "";
        display: inline-block;
        position: absolute;
        left: -7px;
        top: 50%;
        transform: translate(0, -50%);
        width: 4px;
        height: 4px;
        border-radius: 50%;
        /* background-color: #0d6fb8; */
        background-color: #333;
      }
    }

    .menuBtn.open span {
      display: none;
      margin: -5px 0 0;
      position: absolute;
      left: 5px;
      top: 24px;
      width: 30px
    }

    .menuBtn.open span:first-child {
      display: block;
      -moz-transform: rotate(45deg);
      transform: rotate(45deg);
      -webkit-transform: rotate(45deg);
      -o-transform: rotate(45deg);
      -ms-transform: rotate(45deg)
    }

    .menuBtn.open span:last-child {
      display: block;
      -moz-transform: rotate(-45deg);
      transform: rotate(-45deg);
      -webkit-transform: rotate(-45deg);
      -o-transform: rotate(-45deg);
      -ms-transform: rotate(-45deg)
    }

    .menuBtn.open span::before {
      display: none;
    }

    .logo {
      width: 80px;
    }

    .right {
      width: 40px;
      height: 40px;
    }
  }



  .nav {
    position: absolute;
    width: 100%;
    top: -300px;
    z-index: 9;
    background-color: #ffffff;
    font-size: 12px;
    transition: all .3s;

    .list {
      display: flex;
      flex-direction: row;
      justify-content: flex-start;
      align-items: center;
      flex-wrap: wrap;
      padding: 20px 0;
      box-shadow: #a8a8a8 0 5px 5px -5px;

      .li {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 33.333333%;
        margin-bottom: 20px;

        .icon {
          width: 50px;
          margin-bottom: 5px;
        }

        .txt {
          font-size: 12px;
        }
      }
    }
  }

  .navv {
    top: 0%;
    transform: translate(0, 40px);
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
  }
}

.headerFix {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background-color: #ffffff;
}

@media only screen and (max-width: 1199px) {
  .header .con .logo .text {
    display: none;
  }
}

@media only screen and (max-width: 959px) {
  .header {
    .con {
      .logo {
        display: none;
      }
    }
  }
}

@media only screen and (max-width: 769px) {
  .header {
    display: none;
  }

  .header-iphone {
    display: block;
    color: #333;
  }
}